<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" type="text/css" href="./z-checkbox.css">
</head>
<body>
  <div>多选按钮(全选)</div>
  <div style="margin: 10px;">
    <div class="z-checkbox-btn-box" data-checked="false" data-value="all" name="check" style="margin:0 0 10px;">
      <span class="z-checkbox-btn"></span>
      <label>全选</label>
    </div>
    <div style="display: flex;">
      <div class="z-checkbox-btn-box" data-checked="false" data-value="1" name="check">
        <span class="z-checkbox-btn"></span>
        <label>选项1</label>
      </div>
      <div class="z-checkbox-btn-box" data-checked="false" data-value="2" name="check">
        <span class="z-checkbox-btn"></span>
        <label>选项2</label>
      </div>
      <div class="z-checkbox-btn-box" data-checked="false" data-value="3" name="check">
        <span class="z-checkbox-btn"></span>
        <label>选项3</label>
      </div>
      <div class="z-checkbox-btn-box" data-checked="false" data-value="4" name="check">
        <span class="z-checkbox-btn"></span>
        <label>选项4</label>
      </div>
      <div class="z-checkbox-btn-box disabled" disabled data-checked="false" data-value="4" name="check1">
        <span class="z-checkbox-btn"></span>
        <label>选项5</label>
      </div>
      <div class="z-checkbox-btn-box disabled" disabled data-checked="true" data-value="4" name="check1">
        <span class="z-checkbox-btn checked"></span>
        <label>选项6</label>
      </div>
    </div>
  </div>
  
  <div>多选按钮</div>
  <div style="margin: 10px;">
    <div style="display: flex;">
      <div class="z-checkbox-btn-box" data-checked="false" data-value="1" name="check1">
        <span class="z-checkbox-btn"></span>
        <label>选项1</label>
      </div>
      <div class="z-checkbox-btn-box" data-checked="false" data-value="2" name="check1">
        <span class="z-checkbox-btn"></span>
        <label>选项2</label>
      </div>
      <div class="z-checkbox-btn-box" data-checked="false" data-value="3" name="check1">
        <span class="z-checkbox-btn"></span>
        <label>选项3</label>
      </div>
      <div class="z-checkbox-btn-box" data-checked="false" data-value="4" name="check1">
        <span class="z-checkbox-btn"></span>
        <label>选项4</label>
      </div>
      <div class="z-checkbox-btn-box disabled" disabled data-checked="false" data-value="4" name="check1">
        <span class="z-checkbox-btn"></span>
        <label>选项5</label>
      </div>
    </div>
  </div>
</body>
<script src="../../jquery-3.6.0.min.js"></script>
<script src="./z-checkbox.js"></script>
</html>